<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/3/27
  Time: 14:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.zjh.pojo.Book" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    String username = request.getParameter("username");
    String id = request.getParameter("id");
    String password = request.getParameter("password");
    String sex = request.getParameter("sex");
    String age = request.getParameter("age");
    String place = request.getParameter("place");
    String course[] = request.getParameterValues("course");
    String info = request.getParameter("info");
    User user = new User(Integer.parseInt(id), username, password, Boolean.parseBoolean(sex), Integer.parseInt(age), place, course, info);

    out.print(user);

    session.setAttribute("userInfo", user);
%>
</body>
</html>
